Hexo 操作手册

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
sudo npm install hexo-cli -g  
sudo npm install hexo -g
hexo -v
hexo init blog
cd blog
npm install
hexo server

hexo new [layout] \<title\>
hexo generate (hexo g)
hexo publish [layout] \<title\>
hexo deploy (hexo d)
hexo clean && hexo g && hexo d

hexo clean
hexo list <type>

npm install hexo-deployer-git --save
_config.yml

deploy:
type: git
repo: https://github.com/molly2molly/molly2molly.github.io.git
branch: master

https://hexo.io/themes/
解压到themes中
设置_config.yml